{template('../public/header.html')}

<style>
table td { word-break: break-all; }
.explain_col a { color: #50B08C; }
.explain_col a.on { color: #008EBD; }
</style>

<!--标签列表-->
<div class="pad_10" >

    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
            <td>
            <div class="explain_col">
            	<a href="{:u(module_name & '/index')}"{if action_name='index'} class="on"{/if}>查看信息</a> &nbsp;&nbsp;  |  &nbsp;&nbsp;
            	<a href="{:u(module_name & '/config')}"{if action_name='config'} class="on"{/if}>基本设置</a>
        	</div>
            </td>
            </tr>
        </tbody>
    </table>

    <div class="J_tablelist table_list" data-acturi="{:U('sqlin/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width="40"><input type="checkbox" name="checkall" class="J_checkall"></th>
                <th width="100" align="left"><span data-tdtype="order_by" data-field="sqlin_ip">攻击IP</span></th>
                <th width="60" align="center"><span data-tdtype="order_by" data-field="kill_ip">是否锁定</span></th>
                <th width="#" align='left'>操作页面</td>
                <th width="60" align='center'><span data-tdtype="order_by" data-field="sqlin_fs">提交方式</span></td>
                <th width="100" align='center'>提交参数</td>
                <th width="#" align='center'>提交数据</td>
                <th width="120" align='center'><span data-tdtype="order_by" data-field="sqlin_time">操作时间</span></td>
                <th width="100">{:L('operations_manage')}</th>
            </tr>
        </thead>
    	<tbody>
			{$rs type='rs' pagesize='0' }
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$rs('id')}"></td>
                <td align="left">{$rs('sqlin_ip')}</td>
                <td align="center"><img data-tdtype="toggle" data-id="{$rs('id')}" data-field="kill_ip" data-value="{$rs('kill_ip')}" src="__IMG__/admin/toggle_{if rs('kill_ip')=1}enabled{else}disabled{/if}.gif" /></td>
                <td align="left">{$rs('sqlin_web')}</td>
				<td align='center'>{$rs('sqlin_fs')}</td>
				<td align='center'>{$rs('sqlin_cs')}</td>
				<td align='center'>{$rs('sqlin_sj')}</td>
				<td align='center'>{$rs('sqlin_time')}</td>
                <td align="center">
                    <a href="javascript:;" class="J_confirmurl" data-acttype="ajax" data-uri="{:U('sqlin/delete?id='& rs('id') )}" data-msg="您确定要删除吗？"><font color=red>{:L('delete')}</font></a>
                </td>
            </tr>
			{$k++}
            {/$rs}
			{@empty for='rs'} <tr style="height:30px;"> <td align="left" colspan="4">&nbsp;&nbsp; <font color=red>暂无数据！</font></td> </tr>{/@empty}
    	</tbody>
    </table>
    </div>

    <div class="btn_wrap_fixed">
    	<label><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>&nbsp;
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('sqlin/lockip')}" data-name="id" data-msg="确定此操作吗？" value="锁定IP" />
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('sqlin/unlockip')}" data-name="id" data-msg="确定此操作吗？" value="解锁IP" />
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('sqlin/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
    	<div id="pages">
			{@pager data='rs'}
				{$pager("total")} 条记录 {$pager("no")}/{$pager("count")} 页 {if pager("count")>1}{$pager("bar")}{/if}
			{/@pager}
		</div>
    </div>

</div>
{template('../public/footer.html')}
<script>
$(function() {
	$("img[data-field='kill_ip']").click(function() {
		setTimeout(function() { location = location.href; }, 1000);
	});
});
</script>
</body>
</html>
